Optimal. Leaf size=59 \[ \frac {\sin (a-c) \tan ^3(b x+c)}{3 b}+\frac {\sin (a-c) \tan (b x+c)}{b}+\frac {\cos (a-c) \sec ^4(b x+c)}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {4580, 2606, 30, 3767} \[ \frac {\sin (a-c) \tan ^3(b x+c)}{3 b}+\frac {\sin (a-c) \tan (b x+c)}{b}+\frac {\cos (a-c) \sec ^4(b x+c)}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2606
Rule 3767
Rule 4580
Rubi steps
\begin {align*} \int \sec ^5(c+b x) \sin (a+b x) \, dx &=\cos (a-c) \int \sec ^4(c+b x) \tan (c+b x) \, dx+\sin (a-c) \int \sec ^4(c+b x) \, dx\\ &=\frac {\cos (a-c) \operatorname {Subst}\left (\int x^3 \, dx,x,\sec (c+b x)\right )}{b}-\frac {\sin (a-c) \operatorname {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan (c+b x)\right )}{b}\\ &=\frac {\cos (a-c) \sec ^4(c+b x)}{4 b}+\frac {\sin (a-c) \tan (c+b x)}{b}+\frac {\sin (a-c) \tan ^3(c+b x)}{3 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.34, size = 48, normalized size = 0.81 \[ \frac {\sec (c) \sec ^4(b x+c) (\sin (a-c) (4 \sin (2 b x+c)+\sin (4 b x+3 c))+3 \cos (a))}{12 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 53, normalized size = 0.90 \[ -\frac {4 \, {\left (2 \, \cos \left (b x + c\right )^{3} + \cos \left (b x + c\right )\right )} \sin \left (b x + c\right ) \sin \left (-a + c\right ) - 3 \, \cos \left (-a + c\right )}{12 \, b \cos \left (b x + c\right )^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.23, size = 327, normalized size = 5.54 \[ \frac {3 \, \tan \left (b x + c\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right )^{2} - 3 \, \tan \left (b x + c\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{2} + 12 \, \tan \left (b x + c\right )^{4} \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right ) + 8 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right ) - 3 \, \tan \left (b x + c\right )^{4} \tan \left (\frac {1}{2} \, c\right )^{2} - 8 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right )^{2} + 6 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right )^{2} + 3 \, \tan \left (b x + c\right )^{4} + 8 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, a\right ) - 6 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} - 8 \, \tan \left (b x + c\right )^{3} \tan \left (\frac {1}{2} \, c\right ) + 24 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right ) + 24 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right ) - 6 \, \tan \left (b x + c\right )^{2} \tan \left (\frac {1}{2} \, c\right )^{2} - 24 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, a\right ) \tan \left (\frac {1}{2} \, c\right )^{2} + 6 \, \tan \left (b x + c\right )^{2} + 24 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, a\right ) - 24 \, \tan \left (b x + c\right ) \tan \left (\frac {1}{2} \, c\right )}{12 \, {\left (\tan \left (\frac {1}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, c\right )^{2} + \tan \left (\frac {1}{2} \, a\right )^{2} + \tan \left (\frac {1}{2} \, c\right )^{2} + 1\right )} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 13.27, size = 333, normalized size = 5.64 \[ \frac {\frac {\left (\cos \relax (a ) \cos \relax (c )+\sin \relax (a ) \sin \relax (c )\right ) \left (\left (\cos ^{2}\relax (a )\right ) \left (\cos ^{2}\relax (c )\right )+\left (\cos ^{2}\relax (a )\right ) \left (\sin ^{2}\relax (c )\right )+\left (\cos ^{2}\relax (c )\right ) \left (\sin ^{2}\relax (a )\right )+\left (\sin ^{2}\relax (a )\right ) \left (\sin ^{2}\relax (c )\right )\right )}{4 \left (\cos \relax (a ) \sin \relax (c )-\sin \relax (a ) \cos \relax (c )\right )^{4} \left (\tan \left (b x +a \right ) \cos \relax (a ) \sin \relax (c )-\tan \left (b x +a \right ) \sin \relax (a ) \cos \relax (c )-\sin \relax (a ) \sin \relax (c )-\cos \relax (a ) \cos \relax (c )\right )^{4}}-\frac {-3 \cos \relax (a ) \cos \relax (c )-3 \sin \relax (a ) \sin \relax (c )}{2 \left (\cos \relax (a ) \sin \relax (c )-\sin \relax (a ) \cos \relax (c )\right )^{4} \left (\tan \left (b x +a \right ) \cos \relax (a ) \sin \relax (c )-\tan \left (b x +a \right ) \sin \relax (a ) \cos \relax (c )-\sin \relax (a ) \sin \relax (c )-\cos \relax (a ) \cos \relax (c )\right )^{2}}+\frac {1}{\left (\cos \relax (a ) \sin \relax (c )-\sin \relax (a ) \cos \relax (c )\right )^{4} \left (\tan \left (b x +a \right ) \cos \relax (a ) \sin \relax (c )-\tan \left (b x +a \right ) \sin \relax (a ) \cos \relax (c )-\sin \relax (a ) \sin \relax (c )-\cos \relax (a ) \cos \relax (c )\right )}-\frac {-\left (\cos ^{2}\relax (a )\right ) \left (\sin ^{2}\relax (c )\right )-3 \left (\sin ^{2}\relax (a )\right ) \left (\sin ^{2}\relax (c )\right )-4 \cos \relax (a ) \cos \relax (c ) \sin \relax (a ) \sin \relax (c )-3 \left (\cos ^{2}\relax (a )\right ) \left (\cos ^{2}\relax (c )\right )-\left (\cos ^{2}\relax (c )\right ) \left (\sin ^{2}\relax (a )\right )}{3 \left (\cos \relax (a ) \sin \relax (c )-\sin \relax (a ) \cos \relax (c )\right )^{4} \left (\tan \left (b x +a \right ) \cos \relax (a ) \sin \relax (c )-\tan \left (b x +a \right ) \sin \relax (a ) \cos \relax (c )-\sin \relax (a ) \sin \relax (c )-\cos \relax (a ) \cos \relax (c )\right )^{3}}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 1074, normalized size = 18.20 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F(-1)] time = 0.00, size = -1, normalized size = -0.02 \[ \text {Hanged} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________